* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
}

#app {
    height: 100vh;
}

.container {
    display: flex;
    height: 100vh;
}

/* 左侧对话区 */
.chat-panel {
    width: 30%;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.chat-header h1 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.project-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    margin-bottom: 16px;
}

.message.ai {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.message.user {
    background: #007bff;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-left: 20%;
}

.message p {
    margin: 0 0 8px 0;
}

.option-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 10px 16px;
    margin: 8px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-card:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.chat-input-area {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.chat-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
}

/* 中间预览区 */
.preview-panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.preview-toolbar {
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.device-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.device-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.preview-frame {
    flex: 1;
    padding: 20px;
    background: #f5f5f5;
    overflow: auto;
}

.preview-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 100%;
    padding: 20px;
}

/* 演示应用 */
.demo-app {
    max-width: 600px;
    margin: 0 auto;
}

.demo-app h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.task-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.task-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.task-input-area button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.task-input-area button:hover {
    background: #0056b3;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.task-item.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

/* 右侧文档区 */
.doc-panel {
    width: 20%;
    background: #fafafa;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.doc-header {
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.doc-header h2 {
    font-size: 16px;
    color: #333;
}

.doc-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.doc-section {
    background: white;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.doc-section h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.doc-section div {
    font-size: 13px;
    color: #666;
    padding: 4px 0;
}

.doc-footer {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.download-btn {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.download-btn:hover {
    background: #0056b3;
}


